<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="invoice-id"></th>
            <th>发票类型</th>
            <th><div class="text-left">发票抬头</div></th>
            <th><div class="text-left">纳税人识别号</div></th>
            <th><div class="text-left">企业电话</div></th>
            <th><div class="text-left">企业地址</div></th>
            <th><div class="text-left">银行账号</div></th>
            <th><div class="text-left">开户行地址</div></th>
            <th>邮箱</th>
            <th>状态</th>
            <th>默认</th>
            <th>排序</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td><input type="checkbox" class="invoice" name="invoice_id[]" value="{$item.invoice_id}"></td>
                <td>{$item.type}</td>
                <td class="text-left copy-text">{$item.title}</td>
                <td class="text-left copy-text">{$item.tax_code}</td>
                <td class="text-left copy-text">{$item.phone}</td>
                <td class="text-left">{$item.address}</td>
                <td class="text-left copy-text">{$item.bank_account}</td>
                <td class="text-left">{$item.bank_address}</td>
                <td class="copy-text">{$item.email}</td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('save',['invoice_id'=>$item['invoice_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td>
                    {php}$is_default = $item['is_default'];{/php}
                    <a href="{:url('save',['invoice_id'=>$item['invoice_id'], 'is_default'=>abs(1-$is_default)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$is_default?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td>{$item.sort}</td>
                <td class="text-left">{$item.remark}</td>
                <td><a href="{:url('add',['invoice_id'=>$item['invoice_id']])}" class="layui-btn layui-btn-xs layui-btn-normal ajax-form" width-form="550px" height-form="70%" title="银行信息">编辑</a>
                    <a href="{:url('delete',['ids'=>$item['invoice_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a> </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="14">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>